<html>
<head>
<meta charset="UTF-8">
<title>批次任务实例详情</title>
	<link  id="easyuiTheme" href="../../static/easyui/themes/bootstrap/easyui.css" rel="stylesheet" type="text/css"/>
	<link href="../../static/easyui/themes/icon.css" rel="stylesheet" type="text/css"/>
	<link href="../../static/css/esaas-easyui-view.css" rel="stylesheet" type="text/css"/>
	<script src="../../static/easyui/jquery.min.js" type="text/javascript"></script>
	<script src="../../static/easyui/jquery.cookie.js" type="text/javascript"></script>
	<script src="../../static/easyui/ui-theme.js" type="text/javascript"></script>
	<script src="../../static/easyui/jquery.easyui.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="../../static/easyui/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
	<script src="../../static/plugin/assets/jslib.util.js" type="text/javascript"></script>
	<script src="../../static/plugin/assets/jslib.jquery.ajax.js" type="text/javascript"></script>
	<script src="../../static/plugin/assets/jslib.easyui.util.js" type="text/javascript"></script>
	<script src="../../ffres/dict/all.js" type="text/javascript"></script>
	<a href="" target="_blank" id="commonLink" name="commonLink"></a>
</head>
<body class="easyui-layout">

	    <form id="ff" method="post">
	    	<div class="esaas-info-title">批次任务实例信息</div>
	    	<table class="esaas-info-view-table">
			<tr>
				<td width="15%" align="right">批次标识：</td>
				<td width="35%"><input class="easyui-textbox" type="text" readOnly
					name="batchId" data-options="required:true, disabled: true"
					style="width: 100%; height: 25px;"></input></td>
				<td width="15%" align="right">批次序号：</td>
				<td width="35%"><input class="easyui-textbox" type="text" readOnly
					name="batchOrder" data-options="required:true, disabled: true"
					style="width: 100%; height: 25px;"></input></td>
			</tr>
			<tr>
				<td width="15%" align="right">任务编号：</td>
				<td width="35%"><input class="easyui-textbox" type="text" readOnly
					name="taskId" data-options="required:true, disabled: true"
					style="width: 100%; height: 25px;"></input></td>
				<td width="15%" align="right">任务名称：</td>
				<td width="35%"><input class="easyui-textbox" type="text" 
					name="taskName" data-options="required:true, disabled: true"
					style="width: 100%; height: 25px;"></input></td>
			</tr>
			<tr>
				<td width="15%" align="right">阶段编号：</td>
				<td width="35%"><input class="easyui-textbox" type="text" 
					name="stageId" data-options="required:true, disabled: true"
					style="width: 100%; height: 25px;"></input></td>
				<td width="15%" align="right">任务执行状态：</td>
				<td width="35%"><select class="easyui-combobox"
					id="taskRunState" name="taskRunState"
					style="width: 100%; height: 25px;" 
					data-options="required:true,editable:false,disabled: true,valueField:'enname',textField:'cnname',data:BAT_TASK_RUN_STATE">
				</select></td>
			</tr>
			<tr>
				<td width="15%" align="right">任务干预状态：</td>
				<td width="35%"><select class="easyui-combobox"
					id="taskInterveneState" name="taskInterveneState"
					style="width: 100%; height: 25px;" 
					data-options="required:false,editable:false,disabled: true,valueField:'enname',textField:'cnname',data:BAT_TASK_INTERVENE_STATE">
				</select></td>
				<td width="15%" align="right">批次日期：</td>
				<td width="35%"><input class="easyui-textbox" type="text" 
					name="batchDate" data-options="required:false, disabled: true"
					style="width: 100%; height: 25px;"></input></td>
			</tr>
			<tr>
				<td width="15%" align="right">启动时间：</td>
				<td width="35%"><input class="easyui-textbox" type="text" 
					name="startTime" data-options="required:false, disabled: true"
					style="width: 100%; height: 25px;"></input></td>
				<td width="15%" align="right">结束时间：</td>
				<td width="35%"><input class="easyui-textbox" type="text" 
					name="endTime" data-options="required:false, disabled: true"
					style="width: 100%; height: 25px;"></input></td>
			</tr>
			<tr>
				<td width="15%" align="right">警告次数：</td>
				<td width="35%"><input class="easyui-textbox" type="text" 
					name="warnCount" data-options="required:false, disabled: true"
					style="width: 100%; height: 25px;"></input></td>
				<td width="15%" align="right">其它：</td>
				<td width="35%"><input class="easyui-textbox" type="text" 
					name="other" data-options="required:false, disabled: true"
					style="width: 100%; height: 25px;"></input></td>
			</tr>
			<tr>
				<td width="15%" align="right">批次流水号：</td>
				<td width="35%"><input class="easyui-textbox" type="text" 
					name="batchSerialNo" data-options="required:true, disabled: true"
					style="width: 100%; height: 25px;"></input></td>
			</tr>
			<tr>
				<td width="15%" align="right">状态描述：</td>
				<td width="85%" colspan="3"><input class="easyui-textbox" type="text" 
					name="stateDesc" data-options="required:false, multiline: true, disabled: true"
					style="width: 100%; height: 50px;"></input></td>
			</tr>
	    	</table>
	    </form>
	    <div class="esaas-info-buttons">
			<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="closeForm()" style="width:90px">&nbsp;关&nbsp;闭&nbsp;</a>
		</div>
	</div>
	<script>	
		$(function() {
		    addTitle("查看")
			var batchSerialNo = $.getUrlParam('batchSerialNo');
			var taskId = $.getUrlParam('taskId');
			$.restfulGet('../../api/bat/inst/task/' + batchSerialNo + '/' + taskId,null,function(data){
					$('#ff').form('load', {
						batchId : data.rows.batchId,
						batchOrder : data.rows.batchOrder,
						taskId : data.rows.taskId,
						taskName : data.rows.taskName,
						stageId : data.rows.stageId,
						taskRunState : data.rows.taskRunState,
						taskInterveneState : data.rows.taskInterveneState,
						costTime : data.rows.costTime,
						startTime : data.rows.startTime,
						endTime : data.rows.endTime,
						warnCount : data.rows.warnCount,
						other : data.rows.other,
						batchSerialNo : data.rows.batchSerialNo,
						stateDesc : data.rows.stateDesc,
						batchDate : data.rows.batchDate,
						stageName : data.rows.stageName
					});					
			});
		});
		function closeForm(){
			window.parent.JLEUtil.closewin();
		}
	</script>
</body>
</html>